using System;
using System.ComponentModel.DataAnnotations;

namespace VOL.Entity.DomainModels
{
    /// <summary>
    /// 货品信息显示DTO
    /// </summary>
    public class ProductDisplayDto
    {
        /// <summary>
        /// 货品ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 货品编号
        /// </summary>
        public string GoodsCode { get; set; }

        /// <summary>
        /// 货品名称
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string SpecModel { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public sbyte Status { get; set; }

        /// <summary>
        /// 货品类型ID
        /// </summary>
        public int ProductTypeId { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public long SupplierId { get; set; }

        /// <summary>
        /// 入库参考价/元
        /// </summary>
        public decimal PurchasePrice { get; set; }

        /// <summary>
        /// 出库参考价/元
        /// </summary>
        public decimal SalePrice { get; set; }

        /// <summary>
        /// 当前库存
        /// </summary>
        public int CurrentInventory { get; set; }

        /// <summary>
        /// 库存总金额
        /// </summary>
        public decimal TotalInventoryAmount { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
    }

    /// <summary>
    /// 货品查询参数DTO
    /// </summary>
    public class ProductSearchDto
    {
        /// <summary>
        /// 货品编号（模糊查询）
        /// </summary>
        public string GoodsCode { get; set; }

        /// <summary>
        /// 货品名称（模糊查询）
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页记录数
        /// </summary>
        public int PageSize { get; set; } = 20;
    }
}
